package com.ruoyi.project.opencv.test.callback;

/**
 * @program: ruoyi
 * @ClassName Client
 * @description:
 * @author: dx
 * @create: 2021-06-22 10:29
 * @Version 1.0
 **/
public class Client implements MyCallBack {

    Server server = new Server();
    @Override
    public void execute() {
        System.out.println("我被回调了");
    }

    public void callServer(){
        server.testTime(this);
    }

    public static void main(String[] args) {
        Client client = new Client();
        client.callServer();
    }
}
